//
//  SYRequestAPI+YueJuan.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/6/5.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYRequestAPI.h"

@interface SYRequestAPI (YueJuan)

/**
 阅卷获取试题

 @param obj 预留字段
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServicePullQuestionsObj:(id)obj
                                         success:(void(^)(NSMutableArray *dataListArr))success
                                            fail:(FailBlock)fail;


/**
 6.8.1.3    退回试题

 @param questionIds 答案IDs
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServiceSendBackQuestionIds:(NSString *)questionIds
                                            success:(void(^)(BOOL isSuccess))success
                                               fail:(FailBlock)fail;


/**
 6.8.1.2    试题批改

 @param answerId 学生答案ID
 @param isRight 是否正确
 @param score 得分
 @param studentAnswerFileId 学生答案图片ID
 @param answerImagePath 批改痕迹图片路径
 @param wrongReasonIds 标签id
 @param isCorrectQuestion 是否是批改 no 批改 yes 重批
 @param success 1
 @param fail 0
 */
+ (void)yj_requestcorrectServiceCorrectQuestionAnswerId:(NSString *)answerId
                                                isRight:(NSString *)isRight
                                                  score:(NSString *)score
                                    studentAnswerFileId:(NSString *)studentAnswerFileId
                                        answerImagePath:(NSString *)answerImagePath
                                         wrongReasonIds:(NSString *)wrongReasonIds
                                      isCorrectQuestion:(BOOL)question
                                                success:(void(^)(BOOL isSuccess))success
                                                   fail:(FailBlock)fail;





/**
 6.8.1.6    重批

 @param correctId 批改id
 @param score 得分
 @param isright 是否正确
 @param answerImagePath 批改痕迹图片路径
 @param wrongReasonIds 标签
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServiceReCorrectQuestionCorrectId:(NSString *)correctId
                                                     score:(NSString *)score
                                                   isRight:(NSString *)isright
                                           answerImagePath:(NSString *)answerImagePath
                                            wrongReasonIds:(NSString *)wrongReasonIds
                                                   success:(void(^)(BOOL isSuccess))success
                                                      fail:(FailBlock)fail;


/**
 6.8.1.4    已批试题

 @param index 页码
 @param size 条数
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServiceCorrectLogPageIndex:(NSInteger)index
                                           pageSize:(NSInteger)size
                                            success:(void(^)(NSMutableArray *dataListArr))success
                                               fail:(FailBlock)fail;


/**
 6.8.1.5    批改详情

 @param correctId 批改id
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServiceCorrectDetailsId:(NSString *)correctId
                                         success:(void(^)(NSMutableArray *dataListArr))success
                                            fail:(FailBlock)fail;


/**
 批改反馈详情

 @param answerIds 大南ID
 @param success 1
 @param fail 0
 */
+ (void)yj_requestCorrectServiceDetailsInfoAnswerIds:(NSString *)answerIds
                                             success:(void(^)(NSMutableArray *dataListArr))success
                                                fail:(FailBlock)fail;



/**
 6.8.2.1    考试列表

 @param pageIndex 页码
 @param pageSize 也跳
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsServiceExamListPageIndex:(NSInteger)pageIndex
                                            pageSize:(NSInteger)pageSize
                                             success:(void(^)(NSMutableArray *dataListArr))success
                                                fail:(FailBlock)fail;


/**
 6.8.2.2    考试信息

 @param templateId 模板ID
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsServiceEXamInfoTemplateId:(NSString *)templateId
                                              success:(void(^)(NSMutableArray *dataListArr))success
                                                 fail:(FailBlock)fail;



/**
 6.8.2.4    按题统计

 @param classids 班级id
 @param studentIds 学生id
 @param templateId 模板id
 @param isksordz yes 考试统计 no 订正统计
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsServiceByQuestionClassIds:(NSString *)classids
                                           studentIds:(NSString *)studentIds
                                           templateId:(NSString *)templateId
                                    kaoshiOrDingzheng:(BOOL)isksordz
                                              success:(void(^)(NSMutableArray *dataListArr))success
                                                 fail:(FailBlock)fail;


/**
 6.8.2.4    按照学生统计
 
 @param classids 班级id
 @param studentIds 学生id
 @param templateId 模板id
 @param isksordz yes 考试统计 no 订正统计
 @param sort 排序
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsServiceByStudentsClassIds:(NSString *)classids
                                           studentIds:(NSString *)studentIds
                                           templateId:(NSString *)templateId
                                    kaoshiOrDingzheng:(BOOL)isksordz
                                              andSort:(NSString *)sort
                                              success:(void(^)(NSMutableArray *dataListArr))success
                                                 fail:(FailBlock)fail;


/**
 6.8.2.5    做题详情

 @param templateQuestionId 模板试题ID
 @param studentsId 学生ID
 @param isksordz  yes 考试统计 no 订正统计
 @param success 1
 @param fail 0
 */
+ (void)yj_requeststatisticsAnswerdQuestionDetailTemplateQuestionId:(NSString *)templateQuestionId
                                                         studentsId:(NSString *)studentsId
                                                  kaoshiOrDingzheng:(BOOL)isksordz
                                                            success:(void(^)(NSMutableArray *dataListArr))success
                                                               fail:(FailBlock)fail;


/**
 6.8.2.7    做卷详情

 @param studentId 学生id
 @param templateId 模板id
 @param isksordz yes 考试统计 no 订正统计
 @param success 1
 @param fail 0
 */
+ (void)yj_requeststatisticsAnsweredPaperDetailStudentId:(NSString *)studentId
                                              templateId:(NSString *)templateId
                                       kaoshiOrDingzheng:(BOOL)isksordz
                                                 success:(void(^)(NSMutableArray *papeFilePath))success
                                                    fail:(FailBlock)fail;


/**
 6.8.2.3    试卷详情

 @param templateId 模板id
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsServicePaperDetailTemplateId:(NSString *)templateId
                                                 success:(void(^)(NSMutableArray *dataListArr))success
                                                    fail:(FailBlock)fail;

/**
 6.8.2.4    按题统计
 
 @param classids 班级id
 @param studentIds 学生id
 @param templateId 模板id
 @param isksordz yes 考试统计 no 作业统计
 @param success 1
 @param fail 0
 */
+ (void)yj_requestStatisticsZuoyYeByQuestionClassIds:(NSString *)classids
                                          studentIds:(NSString *)studentIds
                                          templateId:(NSString *)templateId
                                   kaoshiOrDingzheng:(BOOL)isksordz
                                             success:(void(^)(NSMutableArray *dataListArr))success
                                                fail:(FailBlock)fail;


/**
 6.8.2.2    考试信息
 
 @param templateId 模板ID
 @param classId 班级ID

 @param success 1
 @param fail 0
 */
+ (void)yj_requestNewStatisticsServiceEXamInfoTemplateId:(NSString *)templateId WithClassId:(NSString *)classId
                                                 success:(void(^)(NSMutableArray *dataListArr))success
                                                    fail:(FailBlock)fail;


#pragma mark - 课文统计 StatisticsService.svc/StatisticsByKnowledge

/// 知识点统计
/// @param scheduleId 补课ID，上一级列表返回的字段
/// @param templateId 模板IDID
/// @param classId 班级ID
/// @param sort 排序
/// @param success 0
/// @param fail 1
+ (void)tj_requestStatisticsServiceByKnowledgeScheduleId:(NSString *)scheduleId
                                              templateId:(NSString *)templateId
                                                 classId:(NSString *)classId
                                                    sort:(NSString *)sort
                                                 success:(void(^)(NSMutableArray *dataListArr))success
                                                    fail:(FailBlock)fail;

@end















